<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Helloworld extends CI_Controller{
  
   public function __construct() {
      parent::__construct();
      $this->load->model('hello','hello');
   }
    
    public function index(){
       $data['id'] = $this->input->get('id');
       $this->hello->insert();
       $data['file'] = 'hellworld.php';
       $this->load->view('layout', $data);
    }
    
    public function show(){
      $data['file'] = 'show.php';
    }
}